package com.witframework.core.resource;

import java.util.Locale;
/**
 * i18n message resource 
 * @author wuxinyang
 *
 */
public interface ResourceMessages {
	 /**
	  * 
	  * @param locale -Locale对象
	  */
	 public void init(Locale locale);
	 /**
	  * Get the resource property.
	  * @param code
	  * @return -message
	  */
	 public String getMessage(String code);
	 /**
	  * Get the resource property.
	  * @param code
	  * @param args
	  * @return -message
	  */
	 public String getMessage(String code, Object[] args);
}
